package com.doucat.support.component.fragment.host;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.widget.TextView;

import com.doucat.support.component.fragment.base.BaseFragment;
import com.tonly.doucatlibrary.R;

/**
 * -----------------------------------------------------------------
 * Copyright (C) 2021-2031, by tonly, All rights reserved.
 * -----------------------------------------------------------------
 * File: ErrorFragment.java
 * Author: wangfy
 * Create: 2021/7/21 10:31
 */
public class ErrorFragment extends BaseFragment {
    private String className;

    public ErrorFragment(String className) {
        this.className = className;
    }

    private TextView tvClassName;
    @Override
    public void onRootViewCreate(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        setBaseFragmentContentView(R.layout.fragment_error);
        tvClassName=findViewById(R.id.tvClassName);
        tvClassName.setText(className);
    }
}